| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRInteractionNudge function either to translate the image and display the new view or to rotate the object in a particular direction and display its new appearance. The current setting of the interaction property for kQTVRInteractionNudgeMode determines whether the nudge action translates the image or rotates the object.
OSErr QTVRInteractionNudge (QTVRInstance qtvr, QTVRNudgeControl direction);
The QTVRInteractionNudge function adjusts the current view of the movie specified by the qtvr parameter as indicated by the direction parameter. The type of adjustment depends on the property setting for nudge interaction mode. If the nudge interaction mode is kQTVRNudgeRotate, the action of the QTVRInteractionNudge function is to rotate the object in the specified direction. If the nudge interaction mode is kQTVRNudgeTranslate, the action of the QTVRInteractionNudge function is to translate the image in the specified direction.
If the nudge interaction mode is kQTVRUNudgeSameAsMouse, the action of the QTVRInteractionNudge function is determined by the current mouse mode.
Use the functions QTVRGetInteractionProperty (link) and QTVRSetInteractionProperty (link) to set the nudge mode and direction properties.
| Previous | Chapter contents | Chapter top | Section top | Next |